package com.zkyc.framework.common.mapper;

import com.zkyc.framework.common.pojo.Center;
import com.zkyc.framework.common.pojo.Organization;
import com.zkyc.framework.common.pojo.Pi;
import org.apache.ibatis.annotations.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.mapping.FetchType;

import java.util.List;

/**
 * (Center)表数据库访问层
 *
 * @author libingchuan
 * @since 2022-05-25 19:21:46
 */
@Mapper
public interface CenterMapper extends BaseMapper<Center>{
    @Select("select * from web_center where organization_id=#{organizationId} and is_deleted != 1")
    List<Center> findCenterByOid(int organizationId);

    @Select("select * from web_pi where user_code=#{userCode} and website_id=#{websiteId} and is_deleted != 1")
    Pi findCenterByUserCode(String userCode,String websiteId);
    

}

